<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<%@ include file="/commons/dateTime.jsp"%>
<html>

<head>
<title>费用审核 _ 财务经理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script>
  <fmt:formatDate pattern="yyyy-MM-dd" var="goOutDate" value="${outDate}" />
  /**
   * 功能描述: 提交表单
   */
   function submitForm(){
	$('chargeExamineForm').mySubmit.click();
   }

   function search(){
	   var period = document.getElementById("chargeCycleId").value;
	   var status = document.getElementById("status").value;
	   document.frames["payDetailFrame"].document.location.href="${ctx}/house_proRightModificationAction.do?method=payDetailList";
   }

	//打开前台缴费
   function getHouseCashiering(keyword,proRightId,accountId){
		var param="&keyword="+keyword+"&proRightId="+proRightId+"&accountId="+accountId;
   		var url="${ctx}/charge_cashieringAction.do?method=getHouseChargeMessage&link=true"+param;
  		windowOpen(url, 'HouseChargeMessage', '', 560, 950,true,'HouseChargeMessage');
   }

</script>
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr><td class="window_head_outBg">
		<table border="0" cellpadding="0" cellspacing="0">
			<tr><td><img src="${ctx }/images/ico_Advance.gif" width="16" height="16" align="absmiddle"> <span class="window_head_intext">退伙申请审核</span></td></tr>
		</table></td>
	</tr>
	<tr><td class="aux_header_line_1"></td></tr>
	<tr><td class="aux_header_line_2"></td></tr>
	<tr><td valign="middle" class="content">
		<div style="height:410px;overflow:auto;">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="container_in_show">
			<tr><td valign="top">
				<table width="100%" border="0" cellpadding="0" cellspacing="0" id="tab_subMenu1"><tr><td>
					<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0"><tr><td>
						<table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">
							<tr><td colspan="4" class="aux_titletable">
						<c:if test="${proRightId == null ||accountId== null  }"> ${key.houseChargeList_no }</c:if>
						<c:if test="${accountId != null }"> <a href="#" style="color: red;" onclick="getHouseCashiering('${houseId}','${proRightId }','${accountId }');"> ${key.houseChargeList }</a></c:if>

						</td></tr>
							<tr><td colspan="4" class="aux_intable_td1">
						</td>
					</tr>
				<tr><td colspan="4" class="aux_titletable">${key.goOutAuditing }</td></tr>
				<tr><td colspan="4" class="aux_intable_td1">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab_line">
						<tr><td>
							<table width="100%" border="0" cellspacing="0" cellpadding="0" id="crmGrid" class="gridControl gridArea">
								<tr><td width="10%" class="align_left" onMouseOver="this.className='grid_sort_on align_left'" onMouseOut="this.className='align_left'"><span class="grid grid_head_line">${key.examineType }</span></td>
									<td width="8%" class="align_left" onMouseOver="this.className='grid_sort_on align_left'" onMouseOut="this.className='align_left'"><span class="grid grid_head_line">${key.isPass }</span></td>
									<td width="40%" class="align_left" onMouseOver="this.className='grid_sort_on align_left'" onMouseOut="this.className='align_left'"><span class="grid grid_head_line">${key.notion }</span></td>
									<td width="8%" class="align_left" onMouseOver="this.className='grid_sort_on align_left'" onMouseOut="this.className='align_left'"><span class="grid grid_head_line">${key.examineDate }</span></td>
									<td width="8%" class="align_left" onMouseOver="this.className='grid_sort_on align_left'" onMouseOut="this.className='align_left'">${key.userName }</td>
								</tr>
								<c:forEach items="${examineList}" var="examine">
								<tr class="grid">
									<td width="10%">${examine.type }</td>
									<td width="8%">
									<c:if test="${examine.examineActionCode=='001'}">${key.pass }</c:if>
									<c:if test="${examine.examineActionCode=='002'}">${key.noPass }</c:if>
                                    <c:if test="${examine.examineActionCode=='003'}">${key.antiAudit }</c:if>
									</td>
									<td width="40%">${examine.notion}</td>
									<td width="8%"><fmt:formatDate pattern="yyyy-MM-dd" value="${examine.examineDate }" /></td>
									<td width="8%">${examine.userName }</td>
								</tr>
								</c:forEach>
							</table>
							</td>
						</tr>
				   </table></td>
				</tr>
				<tr><td colspan="4">
					<form id="chargeExamineForm" name="chargeExamineForm" method="post" action="${ctx}/house_proRightModificationAction.do?method=goOutAudit&type=002" class="required-validate">
						<input type="submit" id="mySubmit" style="display:none" />
						<input type="hidden" id="goOutId" name="goOutId" value="${goOutId }" />
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class=''>
						<tr><td colspan="4" class="aux_titletable">${key.changeAuditing }</td></tr>
						<tr><td class="aux_intable_td1">&nbsp;</td>
							<td colspan="3" class="aux_intable_require">
							<input name="examineActionCode" type="radio" value="001" checked>${key.pass }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input name="examineActionCode" type="radio" value="002">${key.noPass }</td>
						</tr>
						<tr><td valign="top" class="aux_intable_td1">${key.notion }：</td>
							<td colspan="3" class="aux_intable_require_more">
								<textarea name="notion" cols="32" rows="4" onKeyDown='if (this.value.length>=80 && event.keyCode != 8 && event.keyCode != 46){event.returnValue=false}' class="required"></textarea></td>
						</tr>
						<tr><td class="aux_intable_td1">${key.examineDate }：</td>
							<td colspan="3" class="aux_intable_require">
							<table border="0" cellspacing="0" cellpadding="0">
								<tr><td><input type="hidden" id="currentDate" name="currentDate" value="${currentDate }" />
										<input type="hidden" id="outDate" name="outDate" value="${outDate }" />
										<input name="examineDate" id="examineDate" type="text" class="required validate-date less-equals-than-currentDate great-equals-than-outDate" value="${currentDate }" size="16" validateMessageLessEquals="${key.greatCurrentDateMessage}"  validateMessageGreatEquals="${key.lessOutDateMessage} ${outDate } !" ></td>
									<td width="4">&nbsp;</td>
									<td><img id="imgExamineDate" name="imgExamineDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20"></td>
								</tr>
							</table></td>
						</tr>
					</table>
					</form>
				</td>
				</tr>

				</table></td></tr>
			</table></td></tr>
		</table></td></tr>
	</table></div></td>
	</tr>
	<tr><td class="window_footer">
		<table border="0" cellspacing="0" cellpadding="0">
			<tr><td>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr><td class="buttonOffLeft" id="btn1_81"></td>
						<td class="buttonOffMiddle" id="btn1_82" onClick="submitForm();" onMouseOver="btn_change_over(8)" onMouseOut="btn_change_out(8)" onblur="btn_change(8)">
							<img src="${ctx }/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom">提交</td>
						<td class="buttonOffRight" id="btn1_83"></td>
					</tr>
				</table></td>
				<td class="btn_between_space"></td>
				<td>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr><td class="buttonOffLeft" id="btn1_71"></td>
						<td class="buttonOffMiddle" id="btn1_72" onClick="windowClose();" onMouseOver="btn_change_over(7)" onMouseOut="btn_change_out(7)" onblur="btn_change(7)">
							<img src="${ctx }/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom"> 关 闭</td>
						<td class="buttonOffRight" id="btn1_73"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>


<script type="text/javascript">
	 Calendar.setup(
              {
	              inputField : "examineDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgExamineDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
  </script>
</body>
</html>
